package com.wish.wishhouses_market.controller;


import com.wish.wishhouses_market.entity.TbSubway;
import com.wish.wishhouses_market.service.ITbSubwayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import vo.ResultEntity;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author fanzijun
 * @since 2021-04-03
 */
@RestController
@RequestMapping("/tbSubway")
public class TbSubwayController {
    @Autowired
    ITbSubwayService iTbSubwayService;

    /**
     * 查询地铁
     */
    @RequestMapping("/getSubswayByid")
    public ResultEntity getSubswayByid(Integer id){
        List<TbSubway> list = iTbSubwayService.selectById(id);
        return ResultEntity.ok("200","查询成功",list);
    }
}

